package com.v5ent.web;

import java.util.UUID;

import com.v5ent.interfaces.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.v5ent.domain.vo.AccountVo;

@Controller
public class TestController {
	@Autowired
	private IAccountService accountService;
    @RequestMapping("/")
    @ResponseBody
   public String home() {
    	AccountVo account=new AccountVo();
    	account.setId(UUID.randomUUID().toString());
    	account.setUserId(UUID.randomUUID().toString());
    	account.setInfo("standalone mode info");
    	this.accountService.save(account,null);
        return "Hello World! I'm account from test2";
    }

}
